package search.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by xiaoqian on 2016/11/4.
 */
public class SearchQueryVo implements Serializable {

    public static final String TYPE_PRODUCT ="product";
    public static final String TYPE_ARTICLE ="article";


    /**
     * 关键字
     */
    private String keyWord;

    /**
     * 类型
     */
    private String type;

    /**
     * 按价格排序
     */
    private Boolean price;

    /**
     * 按销售数
     */
    private Boolean sale;

    /**
     * 按评议数
     */
    private Boolean comments;

    public Boolean getView() {
        return comments;
    }

    public Boolean setView(Boolean view) {
        return this.comments = view;
    }
    /**
     * 新品
     */
    private Boolean newProduct;

    public Boolean getNew() {
        return newProduct;
    }

    public Boolean setNew(Boolean newProduct) {
        return this.newProduct = newProduct;
    }
    private Integer pageSize;

    private Integer start;

    private Integer total;

    private Boolean defaultSort ;

    private String storeLevel;

    public String getStoreLevel() {
        return storeLevel;
    }

    public void setStoreLevel(String storeLevel) {
        this.storeLevel = storeLevel;
    }

    public Boolean getDefaultSort() {

        return defaultSort;
    }

    public void setDefaultSort(Boolean defaultSort) {
        this.defaultSort = defaultSort;
    }

    private Map<String,String> queryMap = new HashMap();

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public String getKeyWord() {
        return keyWord;
    }

    public void setKeyWord(String keyWord) {
        this.keyWord = keyWord;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getPrice() {
        return price;
    }

    public void setPrice(Boolean price) {
        this.price = price;
    }

    public Boolean getSale() {
        return sale;
    }

    public void setSale(Boolean sale) {
        this.sale = sale;
    }

    public Boolean getComments() {
        return comments;
    }

    public void setComments(Boolean comments) {
        this.comments = comments;
    }

    public Boolean getNewProduct() {
        return newProduct;
    }

    public void setNewProduct(Boolean newProduct) {
        this.newProduct = newProduct;
    }

    public Map<String,String> getQueryMap() {
        return queryMap;
    }

    public void putQueryArgs(String key,String value){
        queryMap.put(key,value);
    }

    public void setQueryMap(Map<String,String> queryMap) {
        this.queryMap = queryMap;
    }
}
